export class GitBranch {
  static fromLine(line: string) {
    if (line.trim().startsWith('*')) {
      return new GitBranch(true, line.slice(1).trim())
    } else {
      return new GitBranch(false, line.trim())
    }
  }
  constructor(public isCurretnBranch = false, public branchName = '') {}
}
